<h1>Listing assets</h1>

<table>
  <tr>
    <th>Size</th>
    <th>Content type</th>
    <th>Filename</th>
    <th>Height</th>
    <th>Width</th>
    <th>Parent</th>
    <th>Thumbnail</th>
  </tr>

<% for asset in @assets %>
  <tr>
    <td><%=h asset.size %></td>
    <td><%=h asset.content_type %></td>
    <td><%=h asset.filename %></td>
    <td><%=h asset.height %></td>
    <td><%=h asset.width %></td>
    <td><%=h asset.parent_id %></td>
    <td><%=h asset.thumbnail %></td>
    <td><%= link_to 'Show', asset %></td>
    <td><%= link_to 'Edit', edit_asset_path(asset) %></td>
    <td><%= link_to 'Destroy', asset, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New asset', new_asset_path %>
